package org.rc.dto;

import lombok.Data;
import org.rc.entity.Mic;

@Data
public class MicPageRes {
    private Long id;

    private String name;

    private String mac;

    private String roomName;

    public static MicPageRes getInstance(Mic mic){
        MicPageRes micPageRes = new MicPageRes();
        micPageRes.setId(mic.getId());
        micPageRes.setName(mic.getName());
        micPageRes.setMac(mic.getMac());
        return micPageRes;
    }
}
